package org.opensmile.website.service;

import org.opensmile.website.domain.Sys_role;
import org.opensmile.website.domain.Sys_roleExample;
import org.opensmile.website.persistence.Sys_roleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class Sys_roleService {

  @Autowired
  private Sys_roleMapper sys_roleMapper;

  public Sys_role getAccount(String name) {
    return sys_roleMapper.getRole(name);
  }
  public int getCount(Sys_roleExample example){
	  return sys_roleMapper.countByExample(example);
  }

  public static void main(String[] args) {
	  Sys_roleService srService =new Sys_roleService();
	  Sys_role srole =new Sys_role();
	  srole =srService.getAccount("1");
	  System.out.println(srole.getName());
  }
  
  

}
